package syntaxTree.exp;

import syntaxTree.id.*;

public class expNewId extends exp{     // -> new id()
	id id;
	public expNewId(id i)
	{
		this.id = i;
	}
	public String toString()
	{
		return ("new "+id.toString()+"()");
	}
	public String toC()
	{
		return ("malloc(sizeof("+id.toC()+"))");
	}
}
